package cn.qingyun.gis.modules.enterprise.aggregate.feign;

import cn.qingyun.gis.modules.enterprise.aggregate.request.AggregateRequest;
import cn.qingyun.gis.modules.enterprise.aggregate.request.BuildInfoVo;
import cn.qingyun.gis.modules.enterprise.aggregate.response.AggregationVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 *
 * @author wz
 * @version JDK 8
 * @InterfaceName GovernmentClientService (此处以class为例)
 * @date 2024/10/28
 * @description 远程调用POI信息
 */
@FeignClient(name = "government-sme", url = "${qingyun.feign.url.government:http://127.0.0.1}", fallback = GovernmentClientServiceFallback.class)
public interface GovernmentClientService {

    @GetMapping(value = "/feign/internal/agg/getAggList",produces = "application/json")
    List<AggregationVo> getAggregateList(@RequestBody AggregateRequest request);

    @GetMapping(value = "/feign/internal/agg/getBuildInfoDetail",produces = "application/json")
    BuildInfoVo getBuildInfoDetail(String poiId);
}
